use "cps_clean_stata.dta", clear

encode age_group, generate(age_group_fac)



eststo clear

xi: reg voted sdr##i.b6.age_group_fac sex faminc educ presidential_year i.race i.state i.year, cluster(state)




eststo clear

xi: reg voted sdr##i.b6.age_group_fac i.state i.year, cluster(state)




eststo clear

xi: reg voted sdr##i.b6.age_group_fac sex faminc educ presidential_year i.race i.state##c.year i.year, cluster(state)


eststo clear

xi: reg voted sdr##i.b6.age_group_fac i.state##c.year i.year, cluster(state)




gen decade = "."
replace decade = "1992" if year<=1992
replace decade = "2004" if year>=1994 & year<=2004
replace decade = "2018" if year>=2006

gen state_decade = st + decade


eststo clear

xi: reg voted sdr##i.b6.age_group_fac sex faminc educ presidential_year i.race i.state_decade, cluster(state)


eststo clear

xi: reg voted sdr##i.b6.age_group_fac i.state_decade, cluster(state)




**Registering at Polling Place (Figure 5)

eststo clear

xi: reg reg_pollingplace sdr##i.b6.age_group_fac sex faminc educ presidential_year i.race i.state i.year, cluster(state)



eststo clear

xi: reg reg_pollingplace sdr##i.b6.age_group_fac i.state i.year, cluster(state)
